package com.zhubayi.constant;

import lombok.Data;

/**
 * @author 祝八一
 * 返回状态码和信息
 */
public enum MyConstant {
    OK(0,"处理成功"),
    ACCOUNTEXIST(1000,"账号存在异常"),
    ACCOUNTNOTFOUNT(1001,"账号不存在"),
    ACCOUNTWRONGPASSWORD(1002,"账号密码不对"),
    AUTHENTICATION(1003,"没有登录"),
    FAVORREPEAT(1004,"已经收藏了");
    private String message;
    private int code;

    MyConstant(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
